﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MandalaySoft.Common;

namespace SIMS.BL
{
    public class GradeScaleDetail
    {
        public int GradeScaleDetailID { get; set; }
        public int GradeScaleID { get; set; }
        
        public string Title { get; set; }
        public decimal BreakOff { get; set; }
        public decimal WeightedGPA { get; set; }
        public decimal UnWeightedGPA { get; set; }
        public string Comment { get; set; }
        public Int16 SortOrder { get; set; }
        public bool IsActive { get; set; }

        public int CreatedBy { get; set; }
        public string CreatedByName { get; set; }
        public DateTime CreatedDate { get; set; }

        public int ModifiedBy { get; set; }
        public string ModifiedByName { get; set; }
        public DateTime ModifiedDate { get; set; }

        public MyError Error { get; set; }

        public GradeScaleDetail()
        {
            ClearFields();
        }

        private void ClearFields()
        {
            GradeScaleDetailID = -1;
            GradeScaleID = -1;
            
            Title = string.Empty;
            BreakOff = 0.0m;
            WeightedGPA = 0.0m;
            UnWeightedGPA = 0.0m;
            Comment = string.Empty;
            SortOrder = -1;

            IsActive = false;
            CreatedBy = -1;
            CreatedByName = string.Empty;
            CreatedDate = new DateTime(1900, 1, 1);
            ModifiedBy = -1;
            ModifiedByName = string.Empty;
            ModifiedDate = new DateTime(1900, 1, 1);
            Error = new MyError();
        }
    }
}
